import { GTextFiled } from "../../../../../../com/mui/controls/GTextFiled";
import { ObjCreate } from "../../../common/ObjCreate";
//class KingChampionShipResultTabBase
    
    export  class KingChampionShipResultTabBase /* flash.display.Sprite */
    {
        

        protected createCategory(arg1: Array<any>, arg2: number): void
        {
            var loc4=null;
            if (!this._titleContainer) 
            {
                this._titleContainer = new Object /* flash.display.Sprite */();
                this._titleContainer.x = 30;
                this._titleContainer.y = 8;
                this.addChild(this._titleContainer);
            }
            var loc1=arg1.length;
            var loc2=0;
            var loc3=0;
            var loc5=0;
            while (loc5 < loc1) 
            {
                loc2 = (loc4 = this.createtxt(arg1[loc5], loc3 + loc2 + arg2, 0)).width;
                if (loc5 == 0) 
                {
                    loc4.x = 0;
                }
                loc3 = loc4.x;
                ++loc5;
            }
            return;
        }

        /* internal  */createtxt(arg1: string="", arg2: number=0, arg3: number=0, arg4: number=70, arg5: number=20): GTextFiled
        {
            var loc1;
            (loc1 = ObjCreate.createGTextField(arg1, arg2, arg3, arg4, arg5, this._titleContainer)).autoSize = "left";
            return loc1;
        }

        /* internal */ /* var */_titleContainer: Object /* flash.display.Sprite */;
    }
